home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / ColourTran / h / SWINames < prev   
Text File  |  1992-02-22  |  2KB  |  58 lines

  1. ; h.swinames
  2. ;
  3. ; This header file for GETting from assembler source defines OS SWI names
  4. ;
  5. ;**************************************************************************
  6. ;
  7. ; SWI names are exported in two forms :
  8. ; 1)  with OS_  'OS_DoThingToOtherThing'  as N
  9. ; 2)  with XOS_ 'XOS_DoThingToOtherThing' as N + Auto_Error_SWI_bit
  10. ;
  11.  
  12. Auto_Error_SWI_bit_number * 17
  13. Auto_Error_SWI_bit * 1 :SHL: Auto_Error_SWI_bit_number
  14.  
  15. ;
  16. ; The following macro defines the SWI names using the '*' directive and the
  17. ; '#' directive to increment the SWI number
  18. ;
  19.  
  20.         GBLS    SWIClass
  21.         MACRO
  22.         AddSWI  $SWIName,$value
  23.   [     "$value" = ""
  24. $SWIClass._$SWIName # 1
  25.   |
  26. $SWIClass._$SWIName * $value
  27.   ]
  28. X$SWIClass._$SWIName * $SWIClass._$SWIName + Auto_Error_SWI_bit
  29.         MEND
  30.  
  31. ;
  32. ; Now for the SWI name table - using the '^' directive to build a table
  33. ; of SWI numbers
  34. ;
  35.  
  36. SWIClass SETS   "SWI_ColourTrans"
  37.  
  38.         ^       &40740                       ; Base for ColourTrans SWIs
  39.         AddSWI  SelectTable                  ; &00
  40.         AddSWI  SelectGCOLTable              ; &01
  41.         AddSWI  ReturnGCOL                   ; &02
  42.         AddSWI  SetGCOL                      ; &03
  43.         AddSWI  ReturnColourNumber           ; &04
  44.         AddSWI  ReturnGCOLForMode            ; &05
  45.         AddSWI  ReturnColourNumberForMode    ; &06
  46.         AddSWI  ReturnOppGCOL                ; &07
  47.         AddSWI  SetOppGCOL                   ; &08
  48.         AddSWI  ReturnOppColourNumber        ; &09
  49.         AddSWI  ReturnOppGCOLForMode         ; &0A
  50.         AddSWI  ReturnOppColourNumberForMode ; &0B
  51.         AddSWI  GCOLToColourNumber           ; &0C
  52.         AddSWI  ColourNumberToGCOL           ; &0D
  53.         AddSWI  ReturnFontColours            ; &0E
  54.         AddSWI  SetFontColours               ; &0F
  55.         AddSWI  InvalidateCache              ; &10 
  56.  
  57.         END
  58.